package com.example.qgtradeconsumer.service.impl;

import com.example.qgtradeconsumer.feign.OrderFeign;
import com.example.qgtradeconsumer.feign.TradeFeign;
import com.example.qgtradeconsumer.service.LocalService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;
@Service
public class LocalServiceImpl implements LocalService {
    @Resource
    private OrderFeign orderFeign;

    @Resource
    private TradeFeign tradeFeign;

    @Override
    public int AddTrade(Map map) {

        tradeFeign.addTrade(map);
       return orderFeign.updateStatus(map);
    }
}
